package com.ctsi.ssdc.service;


import com.ctsi.ssdc.domain.LitemallCouponUserExample;
import com.ctsi.ssdc.model.PageResult;
import org.springframework.data.domain.Pageable;

import com.ctsi.ssdc.domain.LitemallCouponUser;

import java.util.List;

/**
 * Service Interface for managing LitemallCouponUser.
 *
 * @author ctsi-biyi-generator
 *
 */
public interface LitemallCouponUserService 
	extends StrengthenBaseService<LitemallCouponUser, Integer, LitemallCouponUserExample>{


    /**
    * GET  /litemallCouponUsers : get the litemallCouponUsers firstStringBaseColumn.
    */
    PageResult<LitemallCouponUser> findFirstStringColumn(String str,Pageable pageable);

    Integer countUserAndCoupon(Integer userId, Integer couponId);

    void add(LitemallCouponUser couponUser);

    LitemallCouponUser findById(Integer userCouponId);

    LitemallCouponUser queryOne(Integer userId, Integer couponId);

    List<LitemallCouponUser> queryAll(Integer userId);

    List<LitemallCouponUser> findByOid(Integer orderId);

    List<LitemallCouponUser> queryList(Integer userId, Integer couponId, Short status, Integer page, Integer size, String sort, String order);

    Integer countCoupon(Integer couponId);
}
